package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.TRegisterSign;
import com.ruoyi.business.vo.TRegisterSignSendSmsVo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TRegisterSignSms;
import com.ruoyi.business.vo.TRegisterSignSmsVo;
import com.ruoyi.business.mapper.TRegisterSignSmsMapper;
import com.ruoyi.business.service.ITRegisterSignSmsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 科主任签字发送短信Service业务层处理
 *
 * @author Tellsea
 * @date 2025-04-07
 */
@Service
public class TRegisterSignSmsServiceImpl extends ServiceImpl<TRegisterSignSmsMapper, TRegisterSignSms> implements ITRegisterSignSmsService {

    @Override
    public TableDataInfo<TRegisterSignSmsVo> queryList(TRegisterSignSmsVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterSignSmsVo> queryAll(TRegisterSignSmsVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterSignSmsVo queryById(Long registerId) {
        return this.baseMapper.queryById(registerId);
    }

    @Override
    public List<TRegisterSignSendSmsVo> getNoSendSmsSign(Integer noSignTimeOut,Integer noSignTimes) {
        return this.baseMapper.getNoSendSmsSign(noSignTimeOut,noSignTimes);
    }

    @Override
    public List<TRegisterSignSendSmsVo> getKXBatchNoSignByUserId(Long userId) {
        return this.baseMapper.getKXBatchNoSignByUserId(userId);
    }
}
